import request from '@/utils/request'

// 查询输液室记录列表 (分页)
export function selectPageInfusionRecord(query) {
  return request({
    url: '/business/infusionRecord/selectPage',
    method: 'get',
    params: query
  })
}

// 查询输液室记录列表 (不分页)
export function listInfusionRecord(query) {
  return request({
    url: '/business/infusionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询输液室记录详细
export function getInfusionRecord(infusionRecordId) {
  return request({
    url: '/business/infusionRecord/' + infusionRecordId,
    method: 'get'
  })
}

// 新增输液室记录
export function addInfusionRecord(data) {
  return request({
    url: '/business/infusionRecord',
    method: 'post',
    data: data
  })
}

// 批量新增输液室记录
export function addInfusionRecordBatch(data) {
  return request({
    url: '/business/infusionRecord/addInfusionRecordBatch',
    method: 'post',
    data: data
  })
}

// 修改输液室记录
export function updateInfusionRecord(data) {
  return request({
    url: '/business/infusionRecord',
    method: 'put',
    data: data
  })
}

// 删除输液室记录
export function delInfusionRecord(infusionRecordId) {
  return request({
    url: '/business/infusionRecord/' + infusionRecordId,
    method: 'delete'
  })
}

// 配液弹出框修改输液室记录
export function updateInfusionRecordByDialog(data) {
  return request({
    url: '/business/infusionRecord/updateInfusionRecordByDialog',
    method: 'put',
    data: data
  })
}
